from django.db import models

# Create your models here.

class UserModel(models.Model):
    phone = models.CharField(max_length=20,verbose_name="电话",null=True,unique=True)
    email = models.CharField(max_length=20,verbose_name="邮箱",null=True,unique=True)
    username = models.CharField(max_length=20,verbose_name="用户名",null=True,unique=True)
    password = models.CharField(max_length=20,verbose_name="密码")

    class Meta:
        db_table = "user"

    def __str__(self):
        return self.phone

